package com.forum.module.blog.service.article;

import com.baomidou.mybatisplus.extension.service.IService;
import com.forum.framework.common.pojo.PageResult;
import com.forum.module.blog.controller.article.vo.ArticlePageReqVO;
import com.forum.module.blog.controller.article.vo.ArticleSaveReqVO;
import com.forum.module.blog.dal.dataobject.article.ArticleDO;

public interface ArticleService extends IService<ArticleDO> {
    Long createArticle(ArticleSaveReqVO reqVO);

    void updateArticle(ArticleSaveReqVO reqVO);

    void deleteById(Long id);

    PageResult<ArticleDO> getArticlePage(ArticlePageReqVO pageReqVO);

    ArticleDO getArticle(Long id);
}
